package com.abocode.aichat.getway.endpoint;
import com.abocode.aichat.getway.worker.GatewayStanzaWorker;
import com.abocode.aichat.server.endpoint.ServerEndpoint;
import io.netty.channel.ChannelHandler;

/**
 * Created by franky-21.
 */
public class GatewayEndpoint extends ServerEndpoint {
   private   GatewayStanzaWorker worker;
    @Override
    public ChannelHandler channelHandler() {
        return new GatewayChannelHandlerRegister(getServerRuntimeContext(), getWorker());
    }
    public GatewayStanzaWorker getWorker() {
        return worker;
    }

    public void setWorker(GatewayStanzaWorker worker) {
        this.worker = worker;
    }
}
